package me.hl.mybatis.respository.base;

import java.util.List;

/**
 * Created by Planck on 2016/1/21.
 */
public interface IRepository<T> {
    T selectByKey(Object key);

    int save(T entity);

    int delete(Object key);

    int updateAll(T entity);

    int updateNotNull(T entity);

    List<T> selectByExample(Object example);
}
